package com.linxb.web;

import com.linxb.service.HiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: linxubin
 * @Description:
 * @Date: Created in 2018-06-30 19:19
 * @modified by:
 **/
@RestController
public class HiController {
    @Autowired
    private HiService hiService;
    @GetMapping("/hi")
    public String sayHi(@RequestParam(value = "name",defaultValue = "linxb",required = false) String name){
        return hiService.sayHiFromEurekaClient(name);
    }
}
